import request from "../utlis/request";

// 点击login页登录按钮
export const shopping = data => {
  return request({
    url: "/routes/api/index/shopping",
    method: "POST",
    data
  });
};
// 获取被分类的商品数据
export const getshopping = data => {
  return request({
    url: "/routes/api/index/getshopping",
    method: "POST",
    data
  });
};
// 获取轮播图数据
export const getbanner = data => {
  return request({
    url: "/routes/api/index/getbanner",
    method: "POST",
    data
  });
};
// 输入框值的存储
export const storeValue = data => {
  return request({
    url: "/routes/api/index/storeValue",
    method: "POST",
    data
  });
};
// 点击清空
export const remove = data => {
  return request({
    url: "/routes/api/index/remove",
    method: "POST",
    data
  });
};

// 搜索
export const searchs = data => {
  return request({
    url: "/routes/api/index/search",
    method: "POST",
    data
  });
};